from pymysql.constants.ER import PASSWD_LENGTH


class Rectangle:
    rec_lenght: 1
    rec_width: 18

    def perimeter (self):
        print(f'长方形的周长为：{(self.rec_lenght+self.rec_width)*2}')
    def area (self):
        print(f'长方形的面积为：{self.rec_lenght*self.rec_width}')
    def __init__(self, width, lenght):
        self.rec_width = width
        self.rec_lenght = lenght

    def __del__(self):
        pass
i = int(input('请输入一个长方形的长：'))
# for i==exit:
# break
# elif:
# pass
j = int(input('请输入一个长方形的宽：'))

l1 = Rectangle( j, i )
l1.area()
l1.perimeter()
